package com.qyhl.webtv.module_live.teletext.program;

import android.content.Context;
import android.util.AttributeSet;

import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer;

/**
 * Created by Administrator on 2018/4/3.
 */

public class MStandardGSYVideoPlayer extends StandardGSYVideoPlayer {
    public MStandardGSYVideoPlayer(Context context, Boolean fullFlag) {
        super(context, fullFlag);
        initSeekbar();
    }

    public MStandardGSYVideoPlayer(Context context) {
        super(context);
        initSeekbar();
    }

    public MStandardGSYVideoPlayer(Context context, AttributeSet attrs) {
        super(context, attrs);
        initSeekbar();
    }

    private void initSeekbar() {
        mProgressBar.setEnabled(false);
    }

    @Override
    protected void touchSurfaceUp() {
        if (!mChangePosition && !mChangeVolume && !mBrightness) {
            onClickUiToggle();
        }
        mTouchingProgressBar = false;
        dismissProgressDialog();
        dismissVolumeDialog();
        dismissBrightnessDialog();
    }
}
